package net.eascn.babyClone.business
{
	import com.adobe.cairngorm.business.ServiceLocator;
	
	import mx.rpc.AsyncToken;
	import mx.rpc.IResponder;
	import mx.rpc.http.HTTPService;
	
	import net.eascn.babyClone.model.ModelLocator;

	[Bindable]
	public class GetLayoutListDelegate
	{

		//attributes =================================

		private var responder : IResponder;

		private var service : Object;

		private var model : ModelLocator = ModelLocator.getInstance();

		public function GetLayoutListDelegate( responder : IResponder )
		{
			this.service = ServiceLocator.getInstance().getHTTPService( "GetLayoutList" );
			this.responder = responder;
		}
		
		public function getLayoutList():void
		{
			var async:AsyncToken = HTTPService(service).send();
			async.addResponder(responder);
		}

	}
}